<!DOCTYPE html>
<html>
<meta charset="utf-8">
<head th:include="include :: header"></head>
<style type="text/css">
	.aa{
	position:fixed;
	left:48%;
	}
</style>
<body class="gray-bg">
	<div class="wrapper wrapper-content ">
	<form class="form-horizontal m-t" id="signupForm">
		<div class="row">
			<div class="col-sm-12">
				<div class="ibox float-e-margins">
					<div class="ibox-content">
							<div class="form-group">	
								<label class="col-sm-3 control-label">编码：</label>
								<div class="col-sm-8">
									<input id="number" name="number" class="form-control" type="text">
								</div>
							</div>
							<div class="form-group">	
								<label class="col-sm-3 control-label">名称：</label>
								<div class="col-sm-8">
									<input id="name" name="name" class="form-control" type="text">
								</div>
							</div>
							<div class="form-group">	
								<label class="col-sm-3 control-label">标题：</label>
								<div class="col-sm-8">
									<input id="title" name="title" class="form-control" type="text">
								</div>
							</div>
							<div class="form-group">	
								<label class="col-sm-3 control-label">浏览数：</label>
								<div class="col-sm-8">
									<input id="pageviews" name="pageviews" class="form-control" type="text">
								</div>
							</div>
							<div class="form-group">	
								<label class="col-sm-3 control-label">备注：</label>
								<div class="col-sm-8">
									<input id="remarks" name="remarks" class="form-control" type="text">
								</div>
							</div>
							<div class="form-group">	
								<label class="col-sm-3 control-label">销售数量：</label>
								<div class="col-sm-8">
									<input id="salesvolume" name="salesvolume" class="form-control" type="text" onkeyup="checkNum(this,'','',0)">
								</div>
							</div>
							<div class="form-group">	
								<label class="col-sm-3 control-label">库存：</label>
								<div class="col-sm-8">
									<input id="instock" name="instock" class="form-control" type="text" onkeyup="checkNum(this,'','',0)">
								</div>
							</div>
							<div class="form-group">	
								<label class="col-sm-3 control-label">状态：</label>
								<div class="col-sm-8">
									<label class="radio-inline"><input id="state" name="state" type="radio" value="2" checked="checked">上架</label>
									<label class="radio-inline"><input id="state" name="state" type="radio" value="1">下架</label>
								</div>
							</div>
					</div>
				</div>
			</div>
			<div class="col-sm-12">
				<div class="form-bjnone">
			        <div class="cl">
			           <span class="btn btn-success fileinput-button">
				          <span>商品属性</span>
				       </span>
			        </div>
				</div>
				<div class="ibox-content">
					<table class="table users table-bordered table-condensed dataTables-example dataTable">
						<thead>
							<th width="50">操作</th>
                       		<th>参数</th>
                       		<th>参数值</th>
                       		<th>排序</th>
                       	</thead>
						<tbody id="propertyTbody">
							<tr>  
								<td>
                            		<a onclick="addclum(this);" class="mlr-3" href="javascript:void(0);" title="加"><i class="fa fa-plus"></i></a>&nbsp;&nbsp; 
                  					<a onclick="del(this);" class="mlr-3" href="javascript:void(0);" title="减"><i class="fa fa-minus"></i></a>
                           		</td>
						        <td style="width:470px;height:35px">
						        	<select name ="property_parameter" style="width:300px;height:35px">
										<option value="">请选择</option>
										<option th:each="dict:${listDict}" th:value="${dict.value}" th:text="${dict.name}"></option>
									</select>
						        </td>
						        <td>
						        	<input type="text" name="property_parametervalue" class='form-control'/>
						        </td>
						        <td>
						        	<input type="text" name="property_sort" class='form-control'/>
						        </td>  
						    </tr>
						</tbody>
					</table>
				</div>
			</div>
			<div class="col-sm-12">
				<div class="form-bjnone">
			        <div class="cl">
			           <span class="btn btn-success fileinput-button">
				          <span>商品价格</span>
				       </span>
			        </div>
				</div>
				<div class="ibox-content">
					<table class="table users table-bordered table-condensed dataTables-example dataTable">
						<thead>
							<th width="50">操作</th>
                       		<th>规格</th>
                       		<th>价格</th>
                       		<th>促销价格</th>
                       		<th>默认</th>
                       		<th>排序</th>
                       	</thead>
						<tbody id="priceTbody">
							<tr> 
								<td>
                            		<a onclick="addclum(this);" class="mlr-3" href="javascript:void(0);" title="加"><i class="fa fa-plus"></i></a>&nbsp;&nbsp; 
                  					<a onclick="del(this);" class="mlr-3" href="javascript:void(0);" title="减"><i class="fa fa-minus"></i></a>
                           		</td> 
						        <td>
						        	<input type="text" name="price_specification" class='form-control'/>
						        </td>
						        <td>
						        	<input type="text" name="price_price" class='form-control'/>
						        </td>
						        <td>
						        	<input type="text" name="price_promoteprice" class='form-control'/>
						        </td> 
						        <td>
						        	<input type="checkbox" onclick="checkstatus(this)"/>
						        	<input type="hidden" name="price_status" value="1"/>
						        </td> 
						        <td>
						        	<input type="text" name="price_sort" class='form-control'/>
						        </td>  
						    </tr>
						</tbody>
					</table>
				</div>
			</div>
			<div class="col-sm-12">
				<div class="form-bjnone">
			        <div class="cl">
			           <span class="btn btn-success fileinput-button">
				          <span>商品尺寸</span>
				       </span>
			        </div>
				</div>
				<div class="ibox-content">
					<table class="table users table-bordered table-condensed dataTables-example dataTable">
						<thead>
							<th width="50">操作</th>
                       		<th>规格尺寸</th>
                       	</thead>
						<tbody id="sizeTbody">
							<tr>  
								<td>
                            		<a onclick="addclum(this);" class="mlr-3" href="javascript:void(0);" title="加"><i class="fa fa-plus"></i></a>&nbsp;&nbsp; 
                  					<a onclick="del(this);" class="mlr-3" href="javascript:void(0);" title="减"><i class="fa fa-minus"></i></a>
                           		</td>
						        <td>
						        	<input type="text" name="size_measure" class='form-control'/>
						        </td>
						    </tr>
						</tbody>
					</table>
				</div>
			</div>
			<div class="col-sm-12">
				<div class="form-bjnone">
			        <div class="cl">
			           <span class="btn btn-success fileinput-button">
				          <span>商品颜色</span>
				       </span>
			        </div>
				</div>
				<div class="ibox-content">
					<table class="table users table-bordered table-condensed dataTables-example dataTable">
						<thead>
							<th width="50">操作</th>
                       		<th>颜色</th>
                       	</thead>
						<tbody id="colorTbody">
							<tr> 
								<td>
                            		<a onclick="addclum(this);" class="mlr-3" href="javascript:void(0);" title="加"><i class="fa fa-plus"></i></a>&nbsp;&nbsp; 
                  					<a onclick="del(this);" class="mlr-3" href="javascript:void(0);" title="减"><i class="fa fa-minus"></i></a>
                           		</td> 
						        <td>
						        	<input type="text" name="color_color" class='form-control'/>
						        </td>
						    </tr>
						</tbody>
					</table>
				</div>
			</div>
			<div class="col-sm-8 col-sm-offset-3 pull-right aa">
				<button type="submit" class="btn btn-primary">提交</button>
			</div>
		</div>
	</form>	
	</div>
	</div>
	<div th:include="include::footer"></div>
	<script type="text/javascript" src="/js/appjs/shop/product/add.js">
	</script>
</body>
</html>
